//自定义原生方法，方便不经过vueb调试
var _cnjs = {
    // 调用摄像头
    getPhoto: function () {
        api.getPicture(
            {
                sourceType: "camera",
                encodingType: "jpg",
                mediaValue: "pic",
                destinationType: "url",
                allowEdit: true,
                quality: 50,
                targetWidth: 100,
                targetHeight: 100,
                saveToPhotoAlbum: false
            },
            function (ret, err) {
                if (ret) {
                    alert(JSON.stringify(ret));
                } else {
                    alert(JSON.stringify(err));
                }
            }
        );
    }
}